import { app } from '@core';
import SvgIcon from '../components/SvgIcon/index.vue'

export default {
  install() {
    app.component('SvgIcon', SvgIcon);
    const req = require.context('./svg', false, /\.svg$/)
    // @ts-ignore
    const requireAll = requireContext => requireContext.keys().map(requireContext)
    requireAll(req);
  }
}